package idiet.bean;

import java.io.Serializable;
import javax.persistence.*;

import java.sql.Timestamp;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the customer_nurse database table.
 * 
 */
@Entity
@Table(name="customer_nurse")
public class CustomerNurse implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private int age;

	private BigDecimal bust;

	private String comment;

	private String effect;

	@Temporal(TemporalType.DATE)
	@Column(name="fore_end_date")
	private Date foreEndDate;

	@Temporal(TemporalType.DATE)
	@Column(name="fore_start_date")
	private Date foreStartDate;

	private BigDecimal height;

	private BigDecimal hips;

	@Column(name="lm_timestamp")
	private Timestamp lmTimestamp;
	@ManyToOne
	@JoinColumn(name="pal_id")
	private CustomerPal customerPal;

	private BigDecimal waist;

	private BigDecimal weight;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="customer_id")
	private Customer customer;

	//bi-directional many-to-one association to NurseTarget
	@ManyToOne
	@JoinColumn(name="target_id")
	private NurseTarget nurseTarget;

	/*//bi-directional many-to-one association to CustomerNurseMenu
	@OneToMany(mappedBy="customerNurse")
	private List<CustomerNurseMeal> customerNurseMeals;*/
	@OneToMany(mappedBy="customerNurse")
	private List<CustomerNurseMeal> customerNurseMeals;
	
	//bi-directional many-to-one association to CustomerNurseTrace
	@OneToMany(mappedBy="customerNurse")
	private List<CustomerNurseTrace> customerNurseTraces;
	
	@ManyToOne
	@JoinColumn(name="resource_id")
	private Resource resource;
	
	public CustomerNurse() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getAge() {
		return this.age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public BigDecimal getBust() {
		return this.bust;
	}

	public void setBust(BigDecimal bust) {
		this.bust = bust;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getEffect() {
		return this.effect;
	}

	public void setEffect(String effect) {
		this.effect = effect;
	}

	public Date getForeEndDate() {
		return this.foreEndDate;
	}

	public void setForeEndDate(Date foreEndDate) {
		this.foreEndDate = foreEndDate;
	}

	public Date getForeStartDate() {
		return this.foreStartDate;
	}

	public void setForeStartDate(Date foreStartDate) {
		this.foreStartDate = foreStartDate;
	}

	public BigDecimal getHeight() {
		return this.height;
	}

	public void setHeight(BigDecimal height) {
		this.height = height;
	}

	public BigDecimal getHips() {
		return this.hips;
	}

	public void setHips(BigDecimal hips) {
		this.hips = hips;
	}


	public Timestamp getLmTimestamp() {
		return lmTimestamp;
	}

	public void setLmTimestamp(Timestamp lmTimestamp) {
		this.lmTimestamp = lmTimestamp;
	}

	public CustomerPal getCustomerPal() {
		return customerPal;
	}

	public void setCustomerPal(CustomerPal customerPal) {
		this.customerPal = customerPal;
	}

	public BigDecimal getWaist() {
		return this.waist;
	}

	public void setWaist(BigDecimal waist) {
		this.waist = waist;
	}

	public BigDecimal getWeight() {
		return this.weight;
	}

	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public NurseTarget getNurseTarget() {
		return this.nurseTarget;
	}

	public void setNurseTarget(NurseTarget nurseTarget) {
		this.nurseTarget = nurseTarget;
	}
	
	/*public List<CustomerNurseMeal> getCustomerNurseMeals() {
		return customerNurseMeals;
	}

	public void setCustomerNurseMeals(List<CustomerNurseMeal> customerNurseMeals) {
		this.customerNurseMeals = customerNurseMeals;
	}*/

	public List<CustomerNurseTrace> getCustomerNurseTraces() {
		return this.customerNurseTraces;
	}

	public List<CustomerNurseMeal> getCustomerNurseMeals() {
		return customerNurseMeals;
	}

	public void setCustomerNurseMeals(List<CustomerNurseMeal> customerNurseMeals) {
		this.customerNurseMeals = customerNurseMeals;
	}

	public void setCustomerNurseTraces(List<CustomerNurseTrace> customerNurseTraces) {
		this.customerNurseTraces = customerNurseTraces;
	}

	public Resource getResource() {
		return resource;
	}

	public void setResource(Resource resource) {
		this.resource = resource;
	}

}